package com.ants.auth.config.user;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author 蚂蚁会花呗
 * @create 2025/5/29 13:46
 */
public class SecurityUser extends User {

    /**
     * id
     */
    private Integer uid;

    /**
     * 用户名
     */
    private String username;



    public SecurityUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }



    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
